package com.pdh.paging;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 彭德华
 * @Date 2021-08-29 22:19
 */
public class ResultData<T> {
    /**
     * 每次查询的数据集合
     */
    private List<T> rows = new ArrayList<>();

    /**
     * 查询到的总数量
     */
    private int total;

    public ResultData(List<T> rows, int total) {
        this.rows = rows;
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
